
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Listar Arquivos</title>
<?php include "menu.inc"?>
</head>
<body>
<form name="form" enctype="multipart/form-data" method="post" action="../negocio/Ecommerce.php" >
<input type="hidden" name="operacao" value=""></input>
<table border="1" cellpadding="2" cellspacing="1" align="center">
<td bgcolor="#0099FF" colspan="7" align="center">Arquivos cadastrados no sistema</td>
	
	<tr>
		<td>ID</td>
		<td>Titulo</td>
		<td>Nome</td>
		<td>Imagem</td>
		<td>Tipo</td>
		<td>Excluir</td>
		<td>Atualizar</td>
	</tr>
<?php
mysql_connect("localhost", "root","");
		mysql_selectdb("mercado");
		$re = mysql_query("select * from imagem");
		while($campo = mysql_fetch_array($re)){
?>

<tr>
<td><?php echo $campo['id']?></td>
<td><?php echo $campo['nome']?></td>
<td><?php echo $campo['titulo']?></td>
<td><?php echo '<img src="'.$campo['conteudo'].'" width="100" heigth="100"/>'.'<br>';?></td>
<td><?php echo $campo['tipo']?></td>

<td><input type="submit" name="excluir" value="Excluir"></input></td>
<td><input type="submit" name="atualizar" value="Atualizar"></input></td>
</tr>
<br/>

<?php 
}

?>

</table>
</form>
</body>
</html>
